<?php
$this->breadcrumbs = array(
    'Menus' => array('index'),
    $model->name => array('view', 'id' => $model->id),
    'Update',
);
?>
<div class="heading">
    <h1><img src="<?php echo Util::themeUrl() ?>/images/header.ico" />Update Menu <?php echo $model->id; ?></h1>

    <div class="controls">
        <?php
        if (isset($_GET['ajax'])) {
            echo CHtml::button('Create', array('class' => 'controls', 'onclick' => "location.href='" . $this->createUrl('create', array('ajax' => true)) . "'"));
        } else {
            echo CHtml::link("Manage", array('index'), array('class' => 'controls'));
            echo CHtml::link("Create", array('create'), array('class' => 'controls'));
            echo CHtml::link("View", array('view', 'id' => $model->id), array('class' => 'controls'));
        }
        ?>
    </div>
</div>

<div class="content">
    <?php
    echo $this->renderPartial('_form', array(
        'model' => $model,
        'parent' => $parent
    ));
    ?>
</div>
